package com.huayun.plugin.materialLibrary.dao;

import com.huayun.plugin.materialLibrary.domain.MaterialLibrary;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MaterialLibraryRepository extends MongoRepository<MaterialLibrary, String> {
    List<MaterialLibrary> findByNumberContaining(String keyWord);
    List<MaterialLibrary> findByNameContaining(String keyWord);
    List<MaterialLibrary> findByLevelContaining(String keyWord);
    List<MaterialLibrary> findByAreaContaining(String keyWord);
    List<MaterialLibrary> findByDensityContaining(String keyWord);
    List<MaterialLibrary> findByStandardContaining(String keyWord);
    List<MaterialLibrary> findByUnitContaining(String keyWord);
    List<MaterialLibrary> findByNumberIn(List<String> keyWord);
}
